package top.aigoo.project01.service;

import top.aigoo.project01.entity.PersonInfo;
import top.aigoo.project01.entity.dto.PersonInfoExecution;

/**
 * @Description: 请填写该类完成的功能
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/9/10 22:10
 */
public interface PersonInfoService {
    /**
     * 通过userid获取用户信息
     *
     * @param userId
     * @return
     */
    PersonInfo getPersonInfoById(Long userId);


    /**
     *
     * @param personInfoCondition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PersonInfoExecution getPersonInfoList(PersonInfo personInfoCondition,
                                          int pageIndex, int pageSize);

    /**
     *
     * @param personInfo
     * @return
     */
    PersonInfoExecution addPersonInfo(PersonInfo personInfo);

    /**
     *
     * @param personInfo
     * @return
     */
    PersonInfoExecution modifyPersonInfo(PersonInfo personInfo);
}
